package com.pmcc.platform.shopping.repository;

import com.pmcc.platform.shopping.entity.ShoppingApply;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ShoppingApplyRepository  extends JpaRepository<ShoppingApply,String> {
    List<ShoppingApply> findAllByMiniUserIdAndShopIdAndIsApplyAndDelFlag(String minuserId,String shopId,String isApply,String delflag);

    List<ShoppingApply> findAllByMiniUserIdAndIsApplyAndDelFlag(String minuserId,String isApply,String delflag);

    Page<ShoppingApply> findAllBySalesmanIdAndDelFlag(String salesmanId, String delFlag, Pageable pageable);

    List<ShoppingApply> findAllByPhoneAndDelFlag(String phone,String delFlag);


}
